class BaseConfig:
    # SECRET_KEY = 'dtd6Z3Jf4x2Mb9qpaYHLWbWz'
    # SESSION_COOKIE_DOMAIN = '.anymelon.com'

    AI_APP_ID = 2107999572
    AI_APP_KEY = 'sQZae4iQPgXu6haw'

    APP_ID = '1253271207'
    SECRET_ID = 'AKIDfDZjmdHn5CBzbhcLIF3f5JKBqMfpNZBb'
    SECRET_KEY = 'MWUK3ayBapsjOFxUq000yBJFzYvAGBuQ'
    UIN = '100007161638'
    PROJECT_ID = '100515'

    TEMPLATE_IMG_FOLDER = '/root/data/hairstyle'
    IMG_UPLOAD_FOLDER = '/root/data/merge_img'
    ALLOWED_EXTENSIONS = {'jpg', 'jpeg'}
    MAX_CONTENT_LENGTH = 2 * 1024 * 1024

    REDIS_URL = 'redis://:DIYUE231mow@127.0.0.1:6379/0'
    CDN_URL = 'https://gallery.yuanfudao.com/api/ape/images/'


class DevConfig(BaseConfig):
    TEMPLATE_IMG_FOLDER = '/Users/wzh/Desktop/hairstyle'
    IMG_UPLOAD_FOLDER = '/Users/wzh/Desktop/hairstyle'

    REDIS_URL = 'redis://:DIYUE231mow@47.106.23.108:6379/0'
    CDN_URL = 'https://ytkgallery.yuanfudao.ws/api/ape/images/'
